<script>
<!--
function showImport() {
    $('#step2_post').hide();
    $('#step2_post_job_button').hide();
    $('#step2_import').show();

    $.post('<?php echo url_for('@redirect_count?counter=step2_import_view', true) ?>');
    _gaq.push(['_trackEvent','install','step2_import_view','page_id','<?php echo $sf_user->getPageId()?>']);
}

function hideImport() {
    $('#step2_post').show();
    $('#step2_post_job_button').show();
    $('#step2_import').hide();
}

function step1PostProfile() {
    document.forms["shop_profile_form"].submit();
}

function step1ImportJobs() {
}
-->
</script>
<div class="message-grey mb2" style="zoom:1">
  <strong><?php echo __("Use either option below to post your jobs.") ?></strong><br />
  <div class="pt05">
    <?php echo link_to(__("Skip this step"), '@install_step3?button=skip_top&'.sfOutputEscaper::unescape($url_params)) ?>
  </div>
</div>

<div id="step2_post">
  <div class="uiHeaderTop">
    <span class="FB_tooltip_outer">
    <a href="#" class="FB_tooltip_link FB_tooltip_top fright ml05">
      <i class="FB_icons icon_help"></i>
    </a>
    </span>
    <h2 class="mt0"><?php echo __("Fill your profile") ?></h2>
  </div>
  <div class="vtns_form">
      <form id="shop_profile_form" action="<?php echo url_for('@install_step2') ?>" method="post"<?php if ($shop_profile_form->isMultipart()) echo ' enctype="multipart/form-data"' ?> class="clb">
        <?php include_partial('shop_profile_form', array(
                'form'         => $shop_profile_form,
                'wall_post'    => true,
                'is_wall_post_active' => $is_wall_post_active,
                'save_and_add' => false,
                'page_type'    => $sf_user->getPage()->Profile->type,
                )) ?>
      </form>
  </div>
  <div class="clb"></div>
</div>

<div id="step2_import" style="display:none">
  <div class="uiHeaderTop">
    <a href="#" class="vtns_buttonBlue fright" onclick="hideImport(); return false;" id='post_button'>
      <?php echo __('Post your jobs') ?>
    </a>
    <h2 class="mt0"><?php echo __('Import jobs from the web') ?></h2>
  </div>
  <div class="clb"></div>
</div>

<div class="install-buttons">
  <?php echo link_to(__('Skip this step'), '@install_step3?button=skip_bottom&'.sfOutputEscaper::unescape($url_params)) ?>
  <span id="step2_post_job_button">&nbsp;&middot;&nbsp; <?php echo link_to_function(__('Update your profile and continue'), 'step1PostProfile()', array(
          'class' => 'vtns_buttonBlue',
          )) ?></span>
</div>
<div class="clr"></div>
